Skip to content

5.0.1-beta-6#93

Open
rajnandan1 wants to merge 1 commit intomasterfrom
5.0.1-beta-6
Open

5.0.1-beta-6#93
rajnandan1 wants to merge 1 commit intomasterfrom
5.0.1-beta-6

Conversation

@rajnandan1
Copy link
Contributor

Raising PR to github

Copilot AI review requested due to automatic review settings January 20, 2026 10:13
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the codebase from Pydantic v1 to Pydantic v2, changes package versioning, and updates the OpenAPI generator version.

Changes:

  • Migrates all Pydantic model configurations from v1 syntax (Config class) to v2 syntax (model_config dictionary)
  • Updates Field() declarations to use default=None instead of positional None argument
  • Replaces Pydantic v1 validators with v2 field_validator decorators
  • Updates package version from 4.5.1 to 1.0.0 and changes package name from "cashfree_pg" to "cashfree-pg"

Reviewed changes

Copilot reviewed 298 out of 551 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
setup.py Updates package name, version, dependencies (pydantic 2.11.7), and removes URL
pyproject.toml Updates version to 1.0.0 and pydantic dependency to 2.11.7
configuration.py Updates SDK version string in debug report
Multiple test files Removes empty lines after license headers
Multiple model files Migrates from Pydantic v1 to v2 syntax
.openapi-generator/VERSION Updates OpenAPI generator version from 7.0.0 to 7.18.0

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +23 to +24
NAME = "cashfree-pg"
VERSION = "1.0.0"
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package name change from "cashfree_pg" to "cashfree-pg" is a breaking change that will affect all existing users. This should be clearly documented in the PR description and release notes, as users will need to update their import statements from import cashfree_pg to handle the new package name.

Copilot uses AI. Check for mistakes.
NAME = "cashfree_pg"
VERSION = "4.5.1"
NAME = "cashfree-pg"
VERSION = "1.0.0"
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The version has been reset from 4.5.1 to 1.0.0. This is typically done for major breaking changes. However, the PR title indicates "5.0.1-beta-6", which conflicts with this version change. Please clarify the intended version number.

Suggested change
VERSION = "1.0.0"
VERSION = "5.0.1-beta-6"

Copilot uses AI. Check for mistakes.
author="Cashfree Payments",
author_email="developers@cashfree.com",
url="https://cashfree.com",
url="",
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The package URL has been removed (empty string). This field should either contain a valid URL to the project homepage/repository or be removed entirely from the setup configuration.

Suggested change
url="",

Copilot uses AI. Check for mistakes.
"Python Version: {pyversion}\n"\
"Version of the API: 2023-08-01\n"\
"SDK Package Version: 4.3.10".\
"SDK Package Version: 4.5.1".\
Copy link

Copilot AI Jan 20, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The SDK version string in the debug report (4.5.1) does not match the version declared in setup.py (1.0.0) or the PR title (5.0.1-beta-6). These versions should be consistent across the codebase.

Suggested change
"SDK Package Version: 4.5.1".\
"SDK Package Version: 1.0.0".\

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants